package com.itheima.demo1;

import java.util.Scanner;

public class Demo21MethodOverload {
    public static void equal(int a, int b) {
        if (a == b) {
            System.out.println("等于");
        } else {
            System.out.println("不等于");
        }
    }

    public static void equal(short a, short b) {
        if (a == b) {
            System.out.println("等于");
        } else {
            System.out.println("不等于");
        }
    }

    public static void equal(byte a, byte b) {
        if (a == b) {
            System.out.println("等于");
        } else {
            System.out.println("不等于");
        }
    }

    public static void equal(long a, long b) {
        if (a == b) {
            System.out.println("等于");
        } else {
            System.out.println("不等于");
        }
    }

    public static void main(String[] args) {
        int a = 10;
        int b = 10;
        short c = 20;
        short d = 30;

        equal(a,b);
        equal(c,d);
    }
}
